/**
  **************************************************************************
  * File   : at32_board.h
  * Version: V1.2.9
  * Date   : 2021-01-15
  * Brief  : Header file for AT-START board
  *          1. Set of firmware functions to manage Leds, push-button and COM ports.
  *          2. initialize Delay Function and USB
  */

#ifndef __AT32_BOARD_H
#define __AT32_BOARD_H	 
#include <at32f4xx_all.h>


/*define usb pin*/
#define USB_DP_PIN          GPIO_Pins_12
#define USB_DM_PIN          GPIO_Pins_11

#define USB_GPIO            GPIOA
#if defined (AT32F421xx)
#define USB_GPIO_RCC_CLK    RCC_AHBPERIPH_GPIOA
#else
#define USB_GPIO_RCC_CLK    RCC_APB2PERIPH_GPIOA
#endif


/**************** End UART ****************/

void AT32_Board_Init(void);
void AT32_USB_GPIO_init(void);

void UART_Print_Init(uint32_t bound);

#endif

